package com.woniu.day8.config;

import cn.dev33.satoken.filter.SaServletFilter;
import com.woniu.day8.interceptor.AutoRefreshTokenFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SaTokenConfig {
    @Bean
    public SaServletFilter getSaServletFilter() {
        return new AutoRefreshTokenFilter();
    }
}